finished refactor of code for phone type access

next is tests