changed my code to give less arguments to cbv