to-do: fix method invocations
corrected analysis