is there a way to do it without having to override the function?