finished two method bodies