implemented custom status filter
indenting code