remove unused functions
removed scaling support for now as it wasn't working properly