removed redundant implicit none statements