my method is now functional