change code style to satisfy small screnn