sorted out failed function showing house