working on sacle functionalitty