changed to allow scaling