fixed unchanged variables and put them into module
fixed functions for selling