added variables and return methods