removed redundant status variable