fixing get function output