fixing random command