resolved multiple functions bug
return implemented
optimize bugfix