adding encapsulated methods